package com.sgame.android.social;

import org.json.JSONException;
import org.json.JSONObject;

public final class PagingOption
{

    public PagingOption()
    {
        start = 0;
        count = 10;
    }

    public PagingOption(int start, int count)
    {
        this.start = 0;
        this.count = 10;
        this.start = start;
        this.count = count;
    }

    public JSONObject toJsonObject()
    {
        JSONObject object = new JSONObject();
        try
        {
            object.put("start", start);
            object.put("count", count);
        }
        catch(JSONException e)
        {
            e.printStackTrace();
        }
        return object;
    }

    public int start;
    public int count;
}
